package com.api.shopapi.service.impl;

import com.api.shopapi.entity.DishesPlanChangeRecord;
import com.api.shopapi.mapper.DishesPlanChangeRecordMapper;
import com.api.shopapi.service.DishesPlanChangeRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("DishesPlanChangeRecordServiceImplOne")
public class DishesPlanChangeRecordServiceImplOne implements DishesPlanChangeRecordService {

    @Autowired
    private DishesPlanChangeRecordMapper dishesPlanChangeRecordMapper;

    @Override
    public
    int insert(DishesPlanChangeRecord dishesPlanChangeRecord){
        return dishesPlanChangeRecordMapper.insert(dishesPlanChangeRecord);
    }

    @Override
    public
    int update(DishesPlanChangeRecord dishesPlanChangeRecord){
        return dishesPlanChangeRecordMapper.update(dishesPlanChangeRecord);
    }

    @Override
    public
    DishesPlanChangeRecord getByDishesPlanChangeRecordCode(String dishesPlanChangeRecord){
        return dishesPlanChangeRecordMapper.getByDishesPlanChangeRecordCode(dishesPlanChangeRecord);
    }

    @Override
    public
    List<DishesPlanChangeRecord> ListByCarePlaceCode(String carePlaceCode){
        return dishesPlanChangeRecordMapper.ListByCarePlaceCode(carePlaceCode);
    }

}
